#pragma once

#include "VideoDecoder.h"

namespace FFMpegDecoder 
{
	public ref class Decoder
	{
	public:
		Decoder();

		bool Initialize(int iWidth, int iHeight);
		bool Decode(array<System::Byte> ^inBuffer, array<System::Byte> ^outBitmapBuffer,
						unsigned long nDestWidth, unsigned long nDestHeight, int stride, bool bDecodeToRGB);
		bool Terminate();

	private:
		CVideoDecoder*	m_pVideoDecoder;

	};
}